home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / HotShape / HotShape.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  36 lines

  1. // HotShape.h
  2. // By Charles G. Fleming, Educational Computing Services, Allegheny College.
  3. // Copyright 1992 Allegheny College
  4. // You may freely copy, distribute and reuse this code. 
  5. // Allegheny College and the author disclaim any warranty of any kind, 
  6. // expressed or implied, as to its fitness for any particular use.
  7. // This work was partially supported by a grant from the Vira Heinz Endowment.
  8.  
  9. #import <appkit/appkit.h>
  10.  
  11. @interface HotShape:Control
  12. {
  13.     char *hotPathName;
  14.     BOOL visible;
  15. }
  16.  
  17. - (const char *)getInspectorClassName;
  18. - initFrame:(const NXRect *)frameRect;
  19. - (BOOL)acceptsFirstMouse;
  20. - mouseDown:(NXEvent *)theEvent;
  21. - drawSelf:(const NXRect *)rects :(int)rectCount;
  22. - awake;
  23. - sizeTo:(NXCoord)width :(NXCoord)height;
  24. - setHotPathName:(const char *)name;
  25. - (char *)hotPathName;
  26. - (BOOL)visible;
  27. - setVisible:(BOOL)seeIt;
  28. - read:(NXTypedStream *)typedStream;
  29. - write:(NXTypedStream *)typedStream;
  30.  
  31. - (BOOL)traverseTreeWithRoot:root startAt:(int)at         
  32.         usingLocation:(NXPoint)windowCoords;
  33. - (BOOL)inHotPath:(NXPoint)location;
  34.  
  35. @end
  36.